package com.cat.recruit.bean.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import lombok.Data;

/**
 * 分页相关请求参数
 * @author 钟健裕
 */
@Data
@Schema(description = "分页相关请求参数")
public class PageRequest {
    @Schema(description = "页码", example = "1")
    private int pageNum = 1;

    @Schema(description = "每页数量", example = "100")
    @Max(value = 100, message = "每页数量不能超过1000")
    private int pageSize = 100;
}
